# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Grigory Kirillov <txgk@bk.ru>
pkgname=htmldoc
pkgver=1.9.16
pkgrel=0
pkgdesc="HTML conversion software"
url="https://www.msweet.org/htmldoc"
arch="all"
license="GPL-2.0-only"
options="!check" # no test suite
makedepends="fltk-dev libpng-dev libjpeg-turbo-dev zlib-dev"
source="https://github.com/michaelrsweet/htmldoc/archive/v$pkgver/htmldoc-v$pkgver.tar.gz"
subpackages="$pkgname-doc"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
3970df269a0aeb8145b65dd47daa2d2351c1453b6b71c1775e571089bcd97fffc6d83df8c14906fb8da5eb9af3e1d8bd0c0a689a4e64b59c974331a6ac73daab  htmldoc-v1.9.16.tar.gz
"
